.category-container {
  padding: 8px;
}

.category-card {
  border-radius: 16px !important; /* 更圆滑的圆角 */
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100px; /* 更小的高度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.category-card.active {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-content {
  text-align: center;
  padding: 12px;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 文字阴影增强可读性 */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* 更好的字体 */
}

.question-count {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .category-card {
    height: 90px;
    border-radius: 12px !important;
  }
  
  .category-name {
    font-size: 13px;
  }
  
  .question-count {
    font-size: 11px;
  }
}